package pl.pkolodziej.platform.service.pooling;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.pkolodziej.platform.dao.pooling.PoolingDAO;
import pl.pkolodziej.platform.vo.pooling.Pooling;
import pl.pkolodziej.platform.vo.user.User;

@Service
public class PoolingServiceImpl implements PoolingService {

	@Autowired
	public PoolingDAO poolingDAO;
	
	@Transactional
	public void save(Pooling pooling) {
		poolingDAO.save(pooling);
	}
	
	@Transactional
	public int getUserPooling(User user){
		return poolingDAO.getUserPooling(user);
	}

}
